﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Controls;
using System.Windows.Media;

namespace LaberMediaClient.Dal
{
    internal class ColorSelector
    {
        public static void Init(ComboBox comboColor)
        {
            string[] colors = new string[] { "Red", "Blue", "Green", "Black" };
            foreach (string color in colors)
            {
                comboColor.Items.Add(color);
            }
            comboColor.Text = "Red";
        }

        public static SolidColorBrush GetLabelColor(ComboBox comboColor)
        {
            var color = Brushes.Red;
            switch (comboColor.Text)
            {
                case "Red":
                    {
                        color = Brushes.Red;
                        break;
                    }
                case "Blue":
                    {
                        color = Brushes.Blue;
                        break;
                    }
                case "Green":
                    {
                        color = Brushes.Green;
                        break;
                    }
                case "Black":
                    {
                        color = Brushes.Black;
                        break;
                    }
            }
            return color;

        }
    }
}
